//
//  BaseViewModel.h
//  BaseFrameworkOC
//
//  Created by Vicent on 2021/9/7.
//

#import <Foundation/Foundation.h>
#import <MJExtension/MJExtension.h>
#import "BaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseViewModel : BaseModel

/**
 *  转换Model
 *
 *  @param model model层数据
 *
 */
- (void)parseModelToVM:(BaseModel *)model;

/**
 *  网络请求
 *
 *  @param params 请求参数字典
 *  @param successBlock 成功回调
 *  @param failedBlock 失败回调
 *
 */
- (void)requestHttpWithParams:(NSDictionary *)params successBlock:(void(^)(NSDictionary *))successBlock failedBlock:(void(^)(NSError *))failedBlock;

@end

NS_ASSUME_NONNULL_END
